// Author: Domien Nowicki

#ifndef HIGHSCOREDIALOG_H
#define HIGHSCOREDIALOG_H

#include <QGridLayout>
#include <QTableView>
#include <QDialogButtonBox>
#include <QDialog>
#include <QStandardItemModel>
#include <vector>
#include "Highscore.h"

class HighscoreDialog: public QDialog, public Highscore
{
public:

	// Constructors
	HighscoreDialog(QWidget *parent = 0);
	HighscoreDialog(const HighscoreDialog& rhs);
	HighscoreDialog(QWidget *parent, const Highscore& rhs);


	// Destructor
	virtual ~HighscoreDialog();

	// Update table view with internal highscore
	void Update();
	

protected:

private:
	// Helper function to setup the dialog ui
	void setupUi();


    QGridLayout *gridLayout;
    QTableView *tableView;
    QDialogButtonBox *buttonBox;
	QStandardItemModel *model;
};

#endif //HIGHSCOREDIALOG_H